import request from '@/utils/request'
export function leaveList(){
    return request({
      url: '/admin/leave/list',
      method: 'get'
    })
}

export function saveLeave(data){
    return request({
        url: '/admin/leave',
        method: data.leaveId ? 'put':'post',
        data
    })
}

export function getUser(empNo){
    return request({
      url: '/admin/employee/'+empNo,
      method: 'get'
    })
}